package com.adobe.apprise.model
{
	import com.adobe.apprise.aggregator.AggregatorResponder;
	import com.adobe.apprise.database.Database;
	import com.adobe.cairngorm.model.IModelLocator;
	
	import mx.collections.ArrayCollection;
	
	public class ModelLocator implements com.adobe.cairngorm.model.IModelLocator
	{
		protected static var inst:ModelLocator;

		[Bindable] public var statusMessage:String;
		[Bindable] public var db:Database;
		[Bindable] public var isFeedDrawerOpen:Boolean;
		[Bindable] public var totals:ArrayCollection;
		[Bindable] public var feeds:ArrayCollection;
		[Bindable] public var topics:ArrayCollection;
		[Bindable] public var authors:ArrayCollection;
		[Bindable] public var posts:ArrayCollection;
		[Bindable] public var selectedPost:Object;
		[Bindable] public var selectedFeed:Object;
		[Bindable] public var currentlyAggregating:Boolean;
		[Bindable] public var loadingHtml:Boolean;
		[Bindable] public var stopAggregating:Boolean;
		[Bindable] public var currentAggregatorResponder:AggregatorResponder;

		public function ModelLocator()
		{
		}
		
		public static function getInstance():ModelLocator
		{
			if (inst == null)
			{
				inst = new ModelLocator();
			}
			return inst;
		}

	}
}
